//
//  InstituteDetailCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/9/18.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "InstituteDetailCell.h"
#import "InstituteModel.h"
@implementation InstituteDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _imgeView = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgeView];
        [_imgeView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(10));
            make.right.equalTo(self.contentView.mas_right).offset(scaleLeftAndRight(-10));
            make.top.equalTo(self.contentView.mas_top).offset(scaleLeftAndRight(10));
            make.height.mas_equalTo(scaleTopAndBottom(180));
        }];
        _descripLable = [[UILabel alloc] init];
        _descripLable.numberOfLines = 0;
        _descripLable.textColor = COLOR_HEX(0x121212);
        _descripLable.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_descripLable];
        [_descripLable mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(10));
            make.top.equalTo(_imgeView.mas_bottom).offset(scaleTopAndBottom(10));
            make.right.equalTo(self.contentView.mas_right).offset(scaleLeftAndRight(-10));
            make.bottom.equalTo(self.contentView.mas_bottom).offset(scaleTopAndBottom(-10));
        }];

    }
    return self;
}





- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
